
export default class SDKNativeAdItem {

    //广告标识，用来上报曝光与点击
    private data: any;



    init(res: any) {
        this.data = res;
    }

    getShowImageList() {
        return this.getImgList()
    }
    getID() {
        return this.data.adId
    }

    getTitle() {
        return this.data.title;
    }

    getDesc() {
        return this.data.desc;
    }

    getIconList() {
        return this.data.iconUrlList;
    }

    getIcon() {
        let imgList: string[] = this.getImgList();
        if (imgList.length > 0) {
            return imgList[0]
        }
        return null;
    }

    getImgList() {
        return this.data.imgUrlList
    }

    getButtonText() {
        return this.data.clickBtnTxt;
    }

}
